<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<th:block th:include="tpl :: common_head()"></th:block>
	<title>运输单位平台数据信息导出</title>
</head>
<body th:with="entrance='/system/excelImport/indexys'">
<th:block th:replace="tpl :: common_body(~{::.main-right})">
	<div class="main-right">
		<h1 class="main-right-h1">运输单位数据信息导出</h1>
		<form class="form" method="POST" onsubmit="return check()">
			<fieldset>
				<legend>信息</legend>
				<dl>
					<dt>运输单位名称</dt>
					<dd>
						<select id="orgId" name="orgId">
							<option th:each="obj : ${orgList}" th:value="${obj.id}" th:text="${obj.orgName}"></option>
						</select>
					</dd>
				</dl>
			</fieldset>
			<input type="button" value="查询" onclick="find()" />
			<input type="button" value="导出" onclick="send()" />
			<table class="table">
				<thead>
				<tr>
					<th>日期</th>
					<th>产废企业名称</th>
					<th>经营单位名称</th>
					<th>联单编号</th>
					<th>废物类别</th>
					<th>废物名称</th>
					<th>调度人员</th>
					<th>司机姓名</th>
					<th>车牌号</th>
					<th>车型</th>
					<th>转移吨数</th>
				</tr>
				<tr th:each=" list : ${yslist}">
					<th th:text="${list.create_date}"></th>
					<th th:text="${list.manage_org_name}"></th>
					<th th:text="${list.send_org_name}"></th>
					<th th:text="${list.code}"></th>
					<th th:text="${list.waste_type_name}"></th>
					<th th:text="${list.waste_name}"></th>
					<th th:text="${list.transport_org_member_name}"></th>
					<th th:text="${list.driver_name}"></th>
					<th th:text="${list.car_id}"></th>
					<th th:text="${list.car_type}"></th>
					<th th:text="${list.receive_weight}"></th>
				</tr>
				</thead>
			</table>
		</form>
	</div>
</th:block>
<script type="text/javascript">
	function find() {
		var orgId = $('#orgId').val();
		console.log(orgId);
		window.location.href="?orgId=" + orgId;
	}
	function send() {
		var orgId = $('#orgId').val();
		window.open("export?orgId=" + orgId + "&type=2");

	}
	$(document).ready(function () {
		$('#orgId').select2();
	});


</script>
</body>
</html>
